package com.yuntian.Vo.admin;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CartVO {
    // 来自cart表
    private Integer cartId;
    private Long userId;
    private Integer productId;
    private Integer quantity;
    private LocalDateTime createTime;

    // 来自product表的关键信息
    private String productName;
    private String model;
    private String color;
    private BigDecimal price;
    private String image;
    private Integer productStatus;

    // 计算字段
    private BigDecimal totalPrice; // 小计 = price * quantity
}
